<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="vue.js" type="text/javascript"></script>
    <script src="vue-resource.js" type="text/javascript"></script>
</head>
<body>

<div id="box">
    {{a}}
    <!--{{}}-->
</div>

<script>
    var vm = new Vue({
        //el:'#box',
        aa:1111,  //自定义属性
        data:{
            a:3,
        },
        show:function(){
            alert(2222);
        }
    }).$mount("#box"); //手动挂载

//vm.$el.style.background='red';
 //   console.log(vm.$data.a);
//    vm.$mount("#box");
//    console.log(vm.$options.aa);
    vm.$options.show();
</script>
</body>
</html>